class AddTestData < ActiveRecord::Migration
  def self.up
    Book.delete_all
    Book.create(:title => 'O Príncipe e a Ilha Mágica',
                :author => 'C. S. Lewis',
                :publisher => 'ABU',
                :first_edition_year => 1984,
                :copy_year => 1984,
                :category => 'Vida Cristã')

    Book.create(:title => 'Não Tenho Fé Suficiente Para Ser Ateu',
                :author => 'Norman Geisler e Frank Turek',
                :publisher => 'Vida',
                :first_edition_year => 2006,
                :copy_year => 2006,
                :category => 'Apologética')

    Book.create(:title => 'A Inerrância da Bíblia',
                :author => 'Norman Geisler',
                :publisher => 'Vida',
                :first_edition_year => 2001,
                :copy_year => 2001,
                :category => 'Apologética')

    Book.create(:title => 'Respostas para Hoje: Todas as Religiões São Iguais?',
                :author => 'Brian Maiden',
                :publisher => 'ABU',
                :first_edition_year => 2002,
                :copy_year => 2002,
                :category => 'Documentário')

  end

  def self.down
    Book.delete_all
  end
end
